package controller.handstates;

import java.awt.event.ActionEvent;
import java.util.Collection;
import java.util.HashMap;

import model.Deck;
import model.HandChain;
import model.Player;
import model.GameChain;
import model.Table;
import model.timers.BlindCounter;

public class FlopState extends AbstractState {

	private Deck deck;	
	
	public FlopState(HandChain playerChain, Table table, Deck deck, BlindCounter blinds){
		super(playerChain, table, blinds);
		this.deck = deck;
	}

	

	@Override
	public void playState() {
		System.out.println("*Round flop***");
		this.table.addCard(deck.drawCard());
		this.table.addCard(deck.drawCard());
		this.table.addCard(deck.drawCard());
		playRound();
		
	}

	@Override
	public AbstractState getNextState() {
		AbstractState state = null;
		if(!isHandOver()){
			state = new TurnState(handChain, table, deck, blinds);
		}
		return state;
	}
	
	
	
	
}
